package com.example.demo.Service.StudentService;

import com.example.demo.Model.applylev;
import com.example.demo.Repository.ApplylevRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ApplylevServiceImpl implements ApplylevService {
    @Autowired
    private ApplylevRepository applyRepository;

    @Override
    public List<applylev> findAll() {
        return applyRepository.findAll();
    }

    @Override
    public List<applylev> findByStuID(String stuid) {
        return applyRepository.findByStuID(stuid);
    }

    @Override
    public List<applylev> findByTeID(String teid) {
        return applyRepository.findByTeID(teid);
    }

    @Override
    public void save(applylev apply) {
        applyRepository.save(apply);
    }
}
